package com.beamfield.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FileInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FileInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFileidIsNull() {
            addCriterion("fileid is null");
            return (Criteria) this;
        }

        public Criteria andFileidIsNotNull() {
            addCriterion("fileid is not null");
            return (Criteria) this;
        }

        public Criteria andFileidEqualTo(Integer value) {
            addCriterion("fileid =", value, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidNotEqualTo(Integer value) {
            addCriterion("fileid <>", value, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidGreaterThan(Integer value) {
            addCriterion("fileid >", value, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fileid >=", value, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidLessThan(Integer value) {
            addCriterion("fileid <", value, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidLessThanOrEqualTo(Integer value) {
            addCriterion("fileid <=", value, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidIn(List<Integer> values) {
            addCriterion("fileid in", values, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidNotIn(List<Integer> values) {
            addCriterion("fileid not in", values, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidBetween(Integer value1, Integer value2) {
            addCriterion("fileid between", value1, value2, "fileid");
            return (Criteria) this;
        }

        public Criteria andFileidNotBetween(Integer value1, Integer value2) {
            addCriterion("fileid not between", value1, value2, "fileid");
            return (Criteria) this;
        }

        public Criteria andFile_pathIsNull() {
            addCriterion("file_path is null");
            return (Criteria) this;
        }

        public Criteria andFile_pathIsNotNull() {
            addCriterion("file_path is not null");
            return (Criteria) this;
        }

        public Criteria andFile_pathEqualTo(String value) {
            addCriterion("file_path =", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathNotEqualTo(String value) {
            addCriterion("file_path <>", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathGreaterThan(String value) {
            addCriterion("file_path >", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathGreaterThanOrEqualTo(String value) {
            addCriterion("file_path >=", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathLessThan(String value) {
            addCriterion("file_path <", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathLessThanOrEqualTo(String value) {
            addCriterion("file_path <=", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathLike(String value) {
            addCriterion("file_path like", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathNotLike(String value) {
            addCriterion("file_path not like", value, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathIn(List<String> values) {
            addCriterion("file_path in", values, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathNotIn(List<String> values) {
            addCriterion("file_path not in", values, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathBetween(String value1, String value2) {
            addCriterion("file_path between", value1, value2, "file_path");
            return (Criteria) this;
        }

        public Criteria andFile_pathNotBetween(String value1, String value2) {
            addCriterion("file_path not between", value1, value2, "file_path");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameIsNull() {
            addCriterion("original_name is null");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameIsNotNull() {
            addCriterion("original_name is not null");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameEqualTo(String value) {
            addCriterion("original_name =", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameNotEqualTo(String value) {
            addCriterion("original_name <>", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameGreaterThan(String value) {
            addCriterion("original_name >", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameGreaterThanOrEqualTo(String value) {
            addCriterion("original_name >=", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameLessThan(String value) {
            addCriterion("original_name <", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameLessThanOrEqualTo(String value) {
            addCriterion("original_name <=", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameLike(String value) {
            addCriterion("original_name like", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameNotLike(String value) {
            addCriterion("original_name not like", value, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameIn(List<String> values) {
            addCriterion("original_name in", values, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameNotIn(List<String> values) {
            addCriterion("original_name not in", values, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameBetween(String value1, String value2) {
            addCriterion("original_name between", value1, value2, "original_name");
            return (Criteria) this;
        }

        public Criteria andOriginal_nameNotBetween(String value1, String value2) {
            addCriterion("original_name not between", value1, value2, "original_name");
            return (Criteria) this;
        }

        public Criteria andAdd_timeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAdd_timeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAdd_timeEqualTo(Date value) {
            addCriterion("add_time =", value, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeGreaterThan(Date value) {
            addCriterion("add_time >", value, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeLessThan(Date value) {
            addCriterion("add_time <", value, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeIn(List<Date> values) {
            addCriterion("add_time in", values, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "add_time");
            return (Criteria) this;
        }

        public Criteria andAdd_timeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "add_time");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}